//
//  HCAnswerTableViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/1/17.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCAnswerTableViewCell.h"

#import "HCAnswerHomeModel.h"

@interface HCAnswerTableViewCell () {
    HCAnswerHomeData *data;
}

@end

@implementation HCAnswerTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.bacgroundView_.backgroundColor = YBKRGBCOLOR(242, 242, 242, 1);
    // Initialization code
}

-(void)setModel:(id)model {
    data = (HCAnswerHomeData *)model;
    
    [self.headIMG sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.path]]];
    self.name.text = [NSString stringWithFormat:@"%@",data.name];
    self.time.text = [NSString stringWithFormat:@"%@",data.time];
    self.content.text = [NSString stringWithFormat:@"%@",data.text];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
